package postgre

import (
	"fmt"
	"github/kadycui/gids/model"
)

func Migrate() error {
	DB := GetDB()
	err := DB.AutoMigrate(&model.Employee{}, &model.Company{}, &model.Player{})
	// err = db.Table("player").AutoMigrate(&model.Player{})
	if err != nil {
		return err
	}
	fmt.Println("Migrate init OK ")
	return err
}
